import request from '@/utils/request'

//获取会员列表
export function memberList(data) {
  return request({
    url: 'member/list',
    method: 'post',
    data: data
  })
}

//审核会员
export function auditingmember(data) {
  return request({
    url: 'member/auditingMember',
    method: 'post',
    data: data
  })
}

//修改会员
export function modifyMember(data) {
  return request({
    url: 'member/modifyMember',
    method: 'post',
    data: data
  })
}

//查询单个会员信息
export function getMemberInfo(mid) {
  return request({
    url: 'member/getMemberInfo/'+mid,
    method: 'get',
  })
}

//查询会员个人条件以及企业条件
export function getCondition() {
  return request({
    url: 'member/getCondition',
    method: 'get',
  })
}

//设置会员到期时间
export function bookkeeping(data) {
  return request({
    url: 'member/bookkeeping',
    method: 'post',
    data: data
  })
}

//审核会员
export function auditingMember(data) {
  return request({
    url: 'member/auditingMember',
    method: 'post',
    data: data
  })
}

//新增会员
export function saveMember(data) {
  return request({
    url: 'member/saveMember',
    method: 'post',
    data: data
  })
}

//获取主要职责
export function dutiesList(data) {
  return request({
    url: 'duties/dutiesList',
    method: 'post',
    data: data
  })
}

//记账分页查询
export function bookkeepList(data) {
  return request({
    url: 'bookkeeping/list',
    method: 'post',
    data: data
  })
}
//获取会员详情信息
export function getMemberDetail(mid) {
  return request({
    url: 'member/getMemberDetail/'+mid,
    method: 'get',
  })
}
//增加关键字
export function addKeyword(data) {
  return request({
    url: 'member/addKeyword',
    method: 'post',
    data: data
  })
}
//删除关键字信息
export function delKeyword(kid) {
  return request({
    url: 'member/delKeyword/'+kid,
    method: 'get',
  })
}
//查询关键字信息
export function keywordList(data) {
  return request({
    url: 'member/keywordList',
    method: 'post',
    data: data
  })
}
//查询会员信息
export function getMemberMessage() {
  return request({
    url: 'bookkeeping/getMemberInfo',
    method: 'get'
  })
}
//新增职责
export function saveDuties(data) {
  return request({
    url: 'duties/saveDutieies',
    method: 'post',
    data: data
  })
}
//删除主要职责
export function delDuties(bid) {
  return request({
    url: 'duties/delDuties/'+bid,
    method: 'get'
  })
}
//编辑主要职责
export function updateDuties(data) {
  return request({
    url: 'duties/updateDuties',
    method: 'post',
    data: data
  })
}
//更新排序
export function sort(data) {
  return request({
    url: '/member/sort',
    method: 'post',
    data: data
  })
}
//查询会员分类数量
export function getStatusNum() {
  return request({
    url: 'member/getStatusNum',
    method: 'get'
  })
}
//查询会员到期时间信息
export function getBookingByBid(bid) {
  return request({
    url: 'bookkeeping/getBookingByBid/'+bid,
    method: 'get'
  })
}
//修改会员到期时间
export function updateMemberMessage(data) {
  return request({
    url: 'bookkeeping/update',
    method: 'post',
    data: data
  })
}
//删除记账信息
export function delMemberMessage(bid) {
  return request({
    url: 'bookkeeping/del/'+bid,
    method: 'get'
  })
}